﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>各部门人员查询</title>
    <link href="/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
    <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min.css?v=3.2.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">
    <!-- 全局js -->
    <script src="/js/jquery-2.1.1.min.js"></script>
    <script src="/js/bootstrap.min.js?v=3.4.0"></script>
    <script>
        $(function () {
            $("#navbar").load('/ts/navbar.html');
        });
    </script>
    <style>
        .navbar-header {
            width: 150px;
        }

        .top-navigation .navbar-nav .open .dropdown-menu > li > a, .top-navigation .navbar-nav .open .dropdown-menu .dropdown-header {
            padding: 5px 15px 5px 20px;
        }
    </style>
</head>
<body class="gray-bg top-navigation">
    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg">

            <div class="row border-bottom white-bg">
                <nav class="navbar navbar-static-top" role="navigation">
                    <div class="navbar-header">
                        <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                            <i class="fa fa-reorder"></i>
                        </button>
                        <a href="../index.html" class="navbar-brand">LOGO</a>
                    </div>
                    <div class="navbar-collapse collapse" id="navbar">

                        <!--脚本引入菜单页-->
                    </div>
                </nav>
            </div>
            <div class="wrapper wrapper-content animated fadeInRight">
                <!--查询表单-->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>查询条件</h5>
                            </div>
                            <div class="ibox-content">
                                <form role="form" class="form-inline">
                                    <div class="form-group">
                                        <label for="exampleInputEmail2" class="sr-only">部门</label>
                                        <input type="text" placeholder="请输入部门名称" id="exampleInputEmail2" class="form-control">
                                    </div>
                                    <div class="form-group">
                                        <label for="exampleInputPassword2" class="sr-only">专业</label>
                                        <input type="text" placeholder="请输入专业名称" id="exampleInputPassword2" class="form-control">
                                    </div>
                                    <div class="checkbox m-l m-r-xs"></div>
                                    <button class="btn btn-sm btn-primary" style="margin-top:5px;" type="submit">查询</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

                <!--数据列表-->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="ibox ">
                            <div class="ibox-content">
                                <h4>人员培训名单</h4>
                                <div class="jqGrid_wrapper">
                                    <table id="table_list_1"></table>
                                    <div id="pager_list_1"></div>
                                </div>
                                <p>&nbsp;</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>



</body>
</html>


<!-- ECharts -->
<script src="/js/plugins/echarts/echarts-all.js"></script>
<!-- layer javascript -->
<script src="/js/plugins/layer/layer.min.js"></script>
<script>
    function add() {
        layer.open({
            type: 2,
            title: '新增',
            shadeClose: true,
            shade: 0.8,
            area: ['600px', '80%'],
            content: '/ts/SEO/perDepartmentSearch_add.html', //iframe的url
            btn: ["确定", "取消"]
        });
    }
    function edit() {
        layer.open({
            type: 2,
            title: '修改',
            shadeClose: true,
            shade: 0.8,
            area: ['600px', '80%'],
            content: '/ts/SEO/perDepartmentSearch_edit.html', //iframe的url
            btn: ["确定", "取消"]
        });
    }

</script>
<!-- jqGrid -->
<script src="/js/plugins/jqgrid/i18n/grid.locale-cn.js"></script>
<script src="/js/plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script>
    $(document).ready(function () {
        $.jgrid.defaults.styleUI = "Bootstrap";
        var a = [
            { txt1: "1", txt2: "张三", txt3: "男", txt4: "14", txt5: "<a href='javascript:;' onclick='edit()' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "2", txt2: "张三", txt3: "男", txt4: "16", txt5: "<a href='javascript:;' onclick='edit()' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "3", txt2: "张三", txt3: "男", txt4: "23", txt5: "<a href='javascript:;' onclick='edit()' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "4", txt2: "张三", txt3: "男", txt4: "22", txt5: "<a href='javascript:;' onclick='edit()'  class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "5", txt2: "张三", txt3: "男", txt4: "22", txt5: "<a href='javascript:;' onclick='edit()'  class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "6", txt2: "张三", txt3: "男", txt4: "11", txt5: "<a href='javascript:;' onclick='edit()'  class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "7", txt2: "张三", txt3: "男", txt4: "11", txt5: "<a href='javascript:;' onclick='edit()'  class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" },
            { txt1: "8", txt2: "张三", txt3: "男", txt4: "11", txt5: "<a href='javascript:;' onclick='edit()'  class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-edit'></i>修改</a>&nbsp;&nbsp;<a href='javascript:;' onclick='add();' class='btn btn-primary btn-xs'><i class='glyphicon glyphicon-plus'></i>新增</a>" }
        ];
        $("#table_list_1").jqGrid({
            data: a, datatype: "local", height: 300, autowidth: true, shrinkToFit: true,
            rowNum: 14, rowList: [10, 20, 30],
            colNames: ["序号", "姓名", "性别", "年龄", "操作"],
            colModel: [{ name: "txt1", index: "txt1", width: 60, sorttype: "int" },
                        { name: "txt2", index: "txt2", width: 100 },
                { name: "txt3", index: "txt3", width: 90 },
                { name: "txt4", index: "txt4", width: 80, align: "align" },
                { name: "txt5", index: "txt5", width: 80 },
            ],
            pager: "#pager_list_1", viewrecords: true, hidegrid: false
        });
        $(window).bind("resize", function () {
            var b = $(".jqGrid_wrapper").width();
            $("#table_list_1").setGridWidth(b);
        })
    });
</script>